<template>
  <home>
    <h1>HOME</h1>
    <el-button type="primary" :icon="Search" class="searchButton"
      >Search</el-button
    >
    <div class="nav flex-box-center">
      <el-icon style="margin: 0 0.5rem"><Grid /></el-icon>
      <router-link to="/homemain/table">table</router-link>|
      <router-link to="/homemain/list">list</router-link>
    </div>
    <router-view />
  </home>
</template>

<script setup lang="ts">
import { Search } from '@element-plus/icons-vue';
</script>

<style scoped lang="scss">
* {
  font-size: 1.2rem;
}
h1 {
  color: red;
}
.flex-box-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav {
  height: 10rem;
  width: 100%;
}
.searchButton {
  font-size: 1.2rem;
}
</style>
